package com.ls.io.rpc.utils;

import java.util.UUID;
import java.util.concurrent.atomic.AtomicInteger;

public class ReqIdUtils {

//    public static long id(){
//        return Math.abs(UUID.randomUUID().getLeastSignificantBits());
//    }

    static AtomicInteger num = new AtomicInteger(0);

    public static long id(){
        return num.incrementAndGet();
    }

}
